<%--
  Created by IntelliJ IDEA.
  User: tly
  Date: 2021/7/23
  Time: 14:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>网上商店后台-商品列表</title>
    <meta charset="utf-8">
    <!--全局CSS-->
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/share/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/share/myStyle.css">
    <!--私有CSS-->
    <style type="text/css">
        p{
            font-size:1.5rem;
            font-weight: 300;
        }
    </style>
</head>
<body style="background-color: white;">
<div class="container">
    <div class="row">

    <c:forEach var="g" items="${gList}">

        <div class="col-md-3"><img src="${pageContext.request.contextPath}${g.goodsHomepic}" width="200" height="200"></div>
        <div class="col-md-3" style="margin-top: 10px;">
            <h4>${g.goodsName}</h4>
            <p>${g.goodsProducter}</p>
            <p>${g.goodsManufacturedate}</p>
            <p>&yen;${g.goodsPrice}</p>
            <p>
                <a href="goodsInfo.html"><i class="fa fa-cart-plus" aria-hidden="true">加入购物车</i></a>
            </p>
        </div>
    </c:forEach>


    </div>

</div>
</body>
</html>

